{% extends "FOSUserBundle::layout.html.twig" %}

{% block fos_user_content %}
    
{% if error %}
    <div>{{ error|trans({}, 'FOSUserBundle') }}</div>
{% endif %}

    <div class="content">
        <div class="row">
          
          <div class="col-md-4 col-md-offset-4">
            <!-- content start -->
            <a href="/" class="logo"><img class="img-responsive" src="{{asset('images/logo.png')}}" /></a>
            <div class="well">
                <h3 class="heading">Panel logowania</h3>
                <form class="form-wrapper" action="{{ path("fos_user_security_check") }}" method="post">
                    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
                    <div class="form-group">
                        <label for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
                        <input class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
                    </div>
                <div class="form-group">
                    <label for="password">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
                    <input class="form-control" type="password" id="password" name="_password" required="required" />
                </div>
                
                
                <input class="btn btn-primary" type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
 
                </form>
            </div>
            <!-- content end -->
            </div>
        </div>  
    </div>
{% endblock fos_user_content %}
    
